$icon_box_icon_size: 28px;
$icon_box_dimension: 64px;

$icon_box_lg_icon_size: 42px;
$icon_box_lg_dimension: 96px;

$icon_process_center_width: 64px;
$icon_process_unline_width: 100px;
$icon_process_unline_height: 3px;

.box-process {
  padding-right: 0px;
  padding-left: 0px;
  box-shadow: 0 0 0px rgba(0, 0, 0, 0.15);
}

.box {
  &.box-default {
    &.box-process {
      @media screen and (max-width: 4660px) {
        &.box-left {
          float: right;
        }
      }
      @media screen and (max-width: 1280px) {
        &.box-left {
          float: left;
        }
      }
      &.box-center {
        float: left;
      }
      &.box-right {
        float: left;
      }
    }
  }
}

.process-icon {

  position: absolute;
  width: $icon_box_dimension;
  height: $icon_box_dimension;
  top: 0;
  left: 0;
  margin: 0;
  a {
    text-decoration: none;
  }

  a,
  i,
  img {
    display: block;
    position: relative;
    width: 100%;
    height: 100%;
    color: #FFF;
  }
  i,
  img {

    border-radius: 50%;
  }
  img {
    background-color: white;
  }
  i {
    font-style: normal;
    font-size: $icon_box_icon_size;
    text-align: center;
    line-height: $icon_box_dimension;
    background-color: $brand-primary;
  }
}

.process-box {
  position: relative;
  display: block;
  float: left;
  h3 {
    &.h-error {
      color: #EE7A45;
    }
    &.h-gray {

    }
    font-size: 14px;
    //font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0;
    color: $body-color;
  }
}

/**暗叹号图标样式**/
.process-badge {
  background: white;
    color: #4A99E6;
  .badge-error {
    color: #EB6120;
  }
  i {
    font-size: 18px;

    position: absolute;
    right: -20px;
    bottom: -2px;
  }
}

.icon-process {
  position: relative;
  //padding: 0 0 0 20px;
  p {
    margin: 8px 0 0 0;
    color: $gray-light2;
  }
  .before-heading {
    font-size: 14px;
  }
  .unline {
    width: $icon_process_unline_width;
    height: $icon_process_unline_height;
    margin: 0px auto;
    padding: 0px;
    background-color: #4A99E6;
    overflow: hidden;
    display: block;
    position: relative;
    top: 30px;
    float: left;
    &.unline-gray {
      background-color: #D2D2D2;
    }
  }
}

.process-box {
  float: left;
  padding: 0;
  text-align: center;
  width: $icon_process_center_width;
  &.process-small {
    padding-left: 0 !important;
  }
  .process-icon {
    position: relative;
    margin: 0 auto;
  }

  h3 {
    margin: .8em 0 0;
  }

  p {
    font-size: 14px;
    margin-top: 0em;
  }
}

/**白色三角符号**/
.dropdown-caret {
  position: absolute;
  top: -10px;
  left: 20px;
  width: 18px;
  height: 10px;
  float: left;
  overflow: hidden;
  .caret-outer {
    position: absolute;
    display: inline-block;
    margin-left: -1px;
    border-bottom: 10px solid #657786;
    border-bottom-color: rgba(0, 0, 0, 0.1);
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    height: auto;
    left: 0;
    top: 0;
    width: auto;
  }
  .caret-inner {
    position: absolute;
    display: inline-block;
    margin-left: -1px;
    top: 1px;
    left: 1px;
    border-left: 9px solid transparent;
    border-right: 9px solid transparent;
    border-bottom: 9px solid #fff;
    border-bottom-color: #fff;
  }
}

/** 图标鼠标浮动状态**/
.process-icon:hover {
  .tooltipDropdown {
    //display: block;
    visibility: visible;
    //transition: opacity 0.5s;
    opacity: 1;
    pointer-events: auto;
    display: block;
  }

  .tooltipDropdown:before {
    visibility: visible;
    //transition: opacity 0.5s;
    opacity: 1;
    pointer-events: auto;

  }
}

.tooltipDropdown {
  visibility: hidden;
  transition: visibility 0.5s, opacity 0.5s linear;
  opacity: 0;
  pointer-events: none;

  &.dropdown-caret {
    left: auto;
    right: 10px;
  }
  position: absolute;
  top: 70px;
  color: white;
  background-color: #515151;
  font-size: 10px;
  padding: 2px 5px 2px 5px;
  left: -67px;
  width: 200px;
  float: left;
  z-index: 99;

}

.tooltipDropdown:before {
  visibility: hidden;
  transition: visibility 0s, opacity 0.5s linear;
  opacity: 0;
  pointer-events: none;
  display: inline-block;
  position: absolute;
  top: -9px;
  left: 90px;
  border-right: 9px solid transparent;
  border-bottom: 9px solid #515151;
  border-left: 9px solid transparent;
  content: '';
}
